package com.example.dtcloudalibabaproducer.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 辛之所想
 * @create: 2025-11-13 21:35
 * @description:
 **/
@RestController
@RequestMapping(value = "/openFeignProducerController")
@RefreshScope
public class OpenFeignProducerController {
    private static final Logger LOG = LoggerFactory.getLogger(OpenFeignProducerController.class);

    @Value("${nacosConfig}")
    private String nacosConfig;
    /**
     * @Author 辛之所想
     * @Date  2025/11/14
     * @Param
     * @Description openFeign远程调用测试
     **/
    @GetMapping(value = "/openFeignProducer")
    public String openFeignProducer() {
        LOG.info("openFeignProducerController.openFeignProducer()");
        return "openFeignProducer";
    }
    /**
     * @Author 辛之所想
     * @Date  2025/11/14
     * @Param
     * @Description nacos配置中心测试
     **/
    @GetMapping(value = "/nacosConfig")
    public String nacosConfig() {
        LOG.info("openFeignProducerController.nacosConfig()");
        return nacosConfig;
    }



}
